const express = require('express');

const app = express();

// 引入自定义模块
const bodyParser = require('./08custom-body-parse');

app.use(bodyParser)

app.get('/', (req, res) => {
  res.send(req.body);
});

app.listen(80, () => {
  console.log('Server listening on port 80');
});